<template>
  <div class="shortcut">
    <table>
      <tr>
        <td class="td-back-wrap">
          <div class="back" @click="onBackClick">
            <button>
              <i class="iconfont icon-fanhui"></i>
            </button>
          </div>
        </td>
        <td>
          <div class="title" id="spanResult">
            <div class="title_content" v-text="titleCopy"></div>
          </div>
        </td>
        <td></td>
      </tr>
    </table>
  </div>
</template>

<script>


  export default {
    props:{           //父给子
      // title:String,
      title:{
        type: String,
        default: '搜索'
      }
    },
    data(){
      return{
        titleCopy: '',
        title2: ''
      }
    },
    created(){
      this.titleCopy = this.title;
      this.title2 = this.title;
    },
    methods:{
      onBackClick(){
        this.$emit('onBack');   //子给父
      }
    }

  }
</script>

<style scoped>



</style>
